import {getUrlParam,filterData2} from '@/static/js/filter.js';
	export default {
		data() {
			return {
				userInforDetail: {},
			}
		},
		methods: {
			filterData2,
		},
		created() {
			const id = getUrlParam('id');
			if(id) {
				this.$api.findByUserInfo(id).then((res) => {
					if(res.data.returnCode == '200') {
						this.userInforDetail = res.data.result;
						this.userInforDetail.updateTime = res.data.result.updateTime
						// this.userInforDetail.drugAllergy = res.data.result.drugAllergy && res.data.result.drugAllergy.split(',').map((a)=>{return a+','});
						// this.userInforDetail.exposureHistory = res.data.result.exposureHistory && res.data.result.exposureHistory.split(',').map((a)=>{return a+','});
						
						this.userInforDetail.disability = res.data.result.disability && res.data.result.disability.split(',').map((a)=>{return a+','});
						// this.userInforDetail.geneticDisease = res.data.result.geneticDisease && res.data.result.geneticDisease.split(',').map((a)=>{return a+','});
					}
				})
			}
		}
	}